package com.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dto.Message;
import com.service.MessageService;

@RestController 
public class MessageAction {
	@Autowired
	private MessageService ms;
	
	@RequestMapping("message.do")
	public String addmess(Message mess) {
		int x = ms.addmess(mess);
		return x+"";//返回受影响行数 转换成字符串了
	}
	
	
	
	
	public  String queryMess() {
		
		return null;
	}
	
	
}
